android.ndk.bitmap

@file bitmap.h

Members

Enums

ANDROID_BITMAP_RESULT_SUCCESS
enum ANDROID_BITMAP_RESULT_SUCCESS

AndroidBitmap functions result code.

AndroidBitmapFormat
enum AndroidBitmapFormat

Bitmap pixel format.

Functions

AndroidBitmap_getInfo
int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap, AndroidBitmapInfo* info)

Given a java bitmap object, fill out the AndroidBitmapInfo struct for it. If the call fails, the info parameter will be ignored.

AndroidBitmap_lockPixels
int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr)

Given a java bitmap object, attempt to lock the pixel address. Locking will ensure that the memory for the pixels will not move until the unlockPixels call, and ensure that, if the pixels had been previously purged, they will have been restored.

AndroidBitmap_unlockPixels
int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap)

Call this to balance a successful call to AndroidBitmap_lockPixels.

Manifest constants

ANDROID_BITMAP_RESUT_SUCCESS
enum ANDROID_BITMAP_RESUT_SUCCESS;

Backward compatibility: this macro used to be misspelled.

Structs

AndroidBitmapInfo
struct AndroidBitmapInfo

Bitmap info, see AndroidBitmap_getInfo().

Meta